#UI {
	-webkit-tap-highlight-color: transparent;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	font-family: Helvetica;

	background: black;
}
#UI>.header {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	position: relative;

	width: 100%;
	height: 40px;

	background: black;

	border-bottom: thin solid #00ADFF;

	-webkit-transition: -webkit-transform .25s;

	z-index: 2;
}
#UI>.header .logo{
	height: 30px;
	margin-top: 5px;
}
#UI>.header .btn {
	//margin: 7px;

	color: white;
	text-decoration: none;
	font-size: 26px;

	height: 100%;
	padding: 7px;

	display: inline-block;
}
#UI>.header .btn:active {
	background: #00ADFF;
}
#UI>.header .btn-right {
	float: right;
}
#UI>.header .btn-back {
	padding: 7px 0;
}
#UI>.content {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	position: absolute;
	top: 40px;
	left: 0;

	width: 100%;

	background: rgba(255,255,255,.2);

	overflow: hidden;

	-webkit-transition: -webkit-transform .25s;

	z-index: 2;
}
#UI>.content>.panel {
	position: absolute;
	top: 0;
	-webkit-transform: translate3d(100%,0,0);

	width: 100%;
	height: 100%;

	background: url() repeat;
}
#UI>.content>.panel.shown {
	-webkit-transform: translate3d(0,0,0);
}
#UI>.content>.panel.transitioning {
	-webkit-transition: -webkit-transform .35s linear;
}
#UI>.menu {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	position: absolute;
	top: 0;
	left: 0;

	width: 150px;
	height: 100%;

	border-right: thin solid #002638;

	box-shadow: inset -12px 0 24px -12px #002638;

	background: black;
	background: url() repeat;
	
	z-index: 1;
}
#UI>.menu .btn-close {
	position: absolute;
	top: 5px;
	right: 5px;

	color: white;
	font-size: 30px;
	text-decoration: none;
}
#UI>.menu ul {
	position: absolute;
	top: 35px;
	left: 0;

	width: 100%;

	padding: 0;
	margin: 0;

	color: #FFF;

	list-style: none;
}
#UI>.menu ul li {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	margin: 0;

	border-top: thin solid #333;
}
#UI .menu .menu-link {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	padding: 10px;

	width: 100%;
	height: 100%;

	color: #FFF;
	text-decoration: none;
	font-size: 14px;

	background: rgba(255, 255, 255, 0.05);

	display: block;
}
#UI .menu .menu-link:before {
	padding: 0 5px;
}
#UI .menu .menu-link:active {
	background: rgba(255,255,255,.2);
}
#UI>.mask {
	z-index: 100;
	position: absolute;
	top: 0;
	left: 0;

	height: 100%;
	width: 100%;

	background: #000;
	opacity: .3;

	display: none;
}
#UI .btn:active {
	color: #555;
}
#contactsList .contact{
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	padding: 9px 10px;

	width: 100%;

	color: #FFF;

	font-weight: bold;

	border-bottom: thin solid #222;
}
#contactsList .contact:active {
	background: #00ADFF;
}
#contactsList .contact .photo {
	height: 32px;
	width: 32px;
	float: left;
}
#contactsList .contact .photo>img {
	height: 100%;
}
#contactsList .contact .name {
}
#contactsList .contact .phone {
	font-size: 10px;
	font-weight: normal;
}
#contactsList .contact .preview {
	color: #ccc;
	font-size: 12px;
	font-weight: normal;

	text-overflow: ellipsis;
	white-space: nowrap;

	overflow: hidden;
}
#conversation {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	position: absolute;
	top: 0;
	left: 0;

	width: 100%;
	height: 100%;

	overflow: hidden;

	border: thin solid	black;

	background: #000;

	font-family: helvetica;
}
#conversation .message {
	position: relative;

	margin-bottom: 15px;

	width: 100%;

	word-wrap: break-word;
}
#conversation .left-bubble, .right-bubble {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	max-width: 60%;

	padding: 5px 15px;

	border-radius: 10px;
}
#conversation .left-bubble {
	position: relative;
	margin-left: 10px;

	background: -webkit-linear-gradient(bottom,#FFF617,#FFFB9B);
}
#conversation .left-bubble:after {
	content: "";

	position: absolute;
	left: 20px;
	bottom: -10px;

	border-width: 10px 10px 0 0;
	border-color: #FFF617 rgba(0, 0, 0, 0);
	border-style: solid;
}
#conversation .right-bubble {
	position: relative;
	margin-left: auto;
	margin-right: 10px;

	background: -webkit-linear-gradient(bottom,#17BEFF,#2797FF);
}
#conversation .right-bubble:after {
	content: "";

	position: absolute;
	right: 20px;
	bottom: -10px;

	border-width: 10px 0 0 10px;
	border-color: #17BEFF rgba(0, 0, 0, 0);
	border-style: solid;
}
#conversation .msg-date {
	font-size: 11px;
	opacity: .5;
}
#conversation .left-bubble>.msg-date {
	color: #000;
}
#conversation .right-bubble>.msg-date {
	color: #fff;
}
#contactsWrapper {
	height: 100%;
}
#messagesWrapper {
	-webkit-box-sizing: border-box;
	box-sizing: border-box;

	padding: 15px 0;

	height: 90%;
}
#replyBox {
	position: relative;
	bottom: 0px;

	width: 100%;
	height: 10%;

	box-shadow: 0 -2px 10px black;
}
#replyField {
	resize:none;
	width: 80%;
	height: 100%;
	margin-left: 10px;
}
#replyButton {
	position: absolute;
	right: 10px;

	width: auto;
	height: 100%;
}